Ext.define('BenBen.modules.system.organization.OrganizationPanel', {
    extend : 'Ext.panel.Panel',
    requires: [
        'BenBen.common.component.TreePicker',
        'BenBen.common.BaseGrid',
        'BenBen.modules.system.organization.DepartmentTree',
        'BenBen.modules.system.organization.UserGrid'
    ],
    layout : 'border',
    border : false,
	initComponent : function() {
		var userGrid = Ext.create('BenBen.modules.system.organization.UserGrid');
		var departmentTree = Ext.create('BenBen.modules.system.organization.DepartmentTree',{
			userStore : userGrid.getStore()
		});

        Ext.apply(this,{
			border : false,
			layout : 'column',
			items : [ { 
				columnWidth:.3,  
				title : '部门',
				collapsible : true,
				items : [departmentTree]
			}, {
				border : true,
				columnWidth:.7,  
				collapsible : true,
				title : '员工信息',
				items : [userGrid]
			}]
		});

		this.callParent(arguments);
	}
});